package com.example.blog.model;

import lombok.Data;
import lombok.ToString;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@ToString
@Data
@Document(collection = "user")
public class User {
    @Id
    private ObjectId id;

    /**
     * 姓名
     */
    private String name;

    /**
     * 邮箱
     */
    private String email;
}